tools/security: Adjust secpol_tool.c for change to xc_interface_open
authorDaniel Kiper <dkiper@net-space.pl>
Thu, 27 Jan 2011 19:51:47 +0000 (19:51 +0000)
committerDaniel Kiper <dkiper@net-space.pl>
Thu, 27 Jan 2011 19:51:47 +0000 (19:51 +0000)
xc_interface_open() was called with improper number of arguments. It
is fixed by this patch.

This appears to have been missed by 21483:779c0ef9682c. The interface
change also included the return type (int->xc_interface *) but that
was already covered in 21483.

Acked-by: Ian Campbell <ian.campbell@citrix.com>
Signed-off-by: Daniel Kiper <dkiper@net-space.pl>
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/security/secpol_tool.c

index bc85a93e928461747ad9ef0f4fff07b54d6d1d5e..792739e22deab69ae6d5195b6f3af799b4a5d381 100644 (file)
@@ -511,7 +511,7 @@ int main(int argc, char **argv)
         if (argc != 2)
             usage(argv[0]);
 
-        if ((xc_handle = xc_interface_open()) == 0) {
+        if ((xc_handle = xc_interface_open(0, 0, 0)) == 0) {
             printf("ERROR: Could not open xen privcmd device!\n");
             exit(-1);
         }
@@ -523,7 +523,7 @@ int main(int argc, char **argv)
         if (argc != 3)
             usage(argv[0]);
 
-        if ((xc_handle = xc_interface_open()) == 0) {
+        if ((xc_handle = xc_interface_open(0, 0, 0)) == 0) {
             printf("ERROR: Could not open xen privcmd device!\n");
             exit(-1);
         }
@@ -535,7 +535,7 @@ int main(int argc, char **argv)
         if (argc != 2)
             usage(argv[0]);
 
-        if ((xc_handle = xc_interface_open()) == 0) {
+        if ((xc_handle = xc_interface_open(0, 0, 0)) == 0) {
             printf("ERROR: Could not open xen privcmd device!\n");
             exit(-1);
         }